dm: spi: introduce dm api
authorPeng Fan <[email protected]>
Tue, 3 May 2016 02:02:22 +0000 (10:02 +0800)
committerSimon Glass <[email protected]>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit7a3eff4ce962de50bd9a1d83a9fce178c04999d3
tree269d284659e51ef795fb669089eef2f32f526db5
parent102412c415b5e51b01ed5797c965d0feaa065439
dm: spi: introduce dm api

Introduce dm_spi_claim_bus, dm_spi_release_bus and dm_spi_xfer
Convert spi_claim_bus, spi_release_bus and spi_xfer to use
the new API.

Signed-off-by: Peng Fan <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Jagan Teki <[email protected]>
Acked-by: Simon Glass <[email protected]>
drivers/spi/spi-uclass.c
include/spi.h